package com.yanggu.jt808.util;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import lombok.extern.slf4j.Slf4j;

/**
 * bean工具类
 *
 * @Description BeanConvertUtils
 * @Author guoyb
 * @Date 2023/7/25 16:56
 */
@Slf4j
public class BeanConvertUtils {

    public static <T> T copyProperties(Object a, T b) {
        BeanUtil.copyProperties(a, b, CopyOptions.create().setIgnoreNullValue(true).ignoreCase());
        return b;
    }
}
